Ext.define('PCD.view.car.CarEdit', {
    extend: 'Ext.window.Window',
    xtype : 'caredit',

    title:"车辆信息",
    layout:"fit",
    autoshow:true,
    width:320,
    height:240,
    resizable:false,
    closeAction: 'hide',

    initComponent: function() {
    	this.items = [{
    		xtype:"form",
    		padding:"5 5 0 5",
    		border:false,
    		style:"background-color: #fff;",

    		items:[{
    			xtype:"textfield",
    			name:"id",
                disabled:true,
    			fieldLabel:"编号"
    		},{
    			xtype:"textfield",
    			name:"name",
                disabled:true,
    			fieldLabel:"号牌"
    		},/*{
    			xtype:"fieldcontainer",
    			fieldLabel:"是否可借",
                disabled:true,
                defaultType:'radiofield',
                layout:"hbox",
                items:[{
                    boxLabel:"可借",
                    name:"zt",
                    inputValue: "1",
                    id:"radio1"
                },{
                    boxLabel:"使用中",
                    name:"zt",
                    inputValue:"0",
                    id:"radio2"
                }]
    		},*/{
                xtype:"textfield",
                name:"gl",
                disabled:true,
                fieldLabel:"行驶公里数"
            },{
                xtype:"textfield",
                name:"x",
                disabled:true,
                fieldLabel:"经度"
            },{
                xtype:"textfield",
                name:"y",
                disabled:true,
                fieldLabel:"纬度"
            }]
    	}];

    	this.buttons = [{
    		text: "申请",
    		action:"apply"
    	},{
            text: "关闭",
            scope: this,
            handler: this.hide
        }];

        this.callParent(arguments);
    }
});